package com.health.mapp.utils;

import com.health.mapp.utils.BillingSeqence;
import com.health.commons.CommonsUtils;


public class BillingSeqence {

	private static BillingSeqence instance = null;

	private BillingSeqence() {

	}

	public static BillingSeqence getInstance() {
		if (instance == null) {
			instance = new BillingSeqence();
			seqence = Integer.valueOf(CommonsUtils.getDateTimeByFmt("HHmmss"));
		}
		return instance;
	}

	private static long seqence = 0;

	public synchronized String next() {
		seqence++;
		return String.format("%010d", seqence);
	}
}
